package com.example.utils;

public class MathUtils {
    public static int randInt(int max,int min){
        if(max==1){
            return Math.random()>0.5?1:0;
        }
        int x = (int) (Math.random() * (max+1));
        if(x<min)return min;
        return Math.min(x, max);
    }
}
